package day05.arrarys;

import java.util.Arrays;

public class Lian01 {
    public static void main(String[] args) {
        int[]arr={3,2,1,4,5};
        System.out.println(Arrays.toString(arr));
        Arrays.sort(arr);
        System.out.println(Arrays.toString(arr));
        System.out.println("-------");
        int[]arr1={1,2,3,4,5,6,7,8,9,10};
        int i = Arrays.binarySearch(arr1, 10);
        System.out.println(i);

    }
}

